package com.xm.xmapp;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;

import com.xm.xmapp.app.MyAppcation;
import com.xm.xmapp.base.BaseActivity;
import com.xm.xmapp.customview.CustomLayout;

public class SettingPassWordActivity extends BaseActivity implements OnClickListener {

	private CustomLayout denglu, find;
	private ImageView right;

	@Override
	protected void onCreate(Bundle savedInstanceState) {

		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_password_setting);

	}

	@Override
	public void initView() {

		denglu = (CustomLayout) findViewById(R.id.denglu);
		find = (CustomLayout) findViewById(R.id.find);
		right = (ImageView) findViewById(R.id.right);

	}

	@Override
	public void initData() {
		setMyTitle("安全设置");
	}

	@Override
	public void initEvent() {

		denglu.setOnClickListener(this);
		find.setOnClickListener(this);
		right.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {

		switch (v.getId()) {
		case R.id.denglu:
			intent = new Intent(MyAppcation.getMyAppcation(), UpPassWordActivity.class);
			startActivity(intent);
			break;

		case R.id.find:
			intent = new Intent(MyAppcation.getMyAppcation(), SettingPingActivity.class);
			startActivity(intent);
			break;

		default:
			break;
		}
	}

}
